# Author: momo
# week05: 数据结构之列表

# 主要知识：列表入门
# squares = [1, 4, 9, 16, 25]
# squares.方法()

# 构建列表 形式[]其中元素以“，”隔开
# 列表是有顺序的一组值，顺序是从0开始的
squares = [1,4,9,16,25]
# name_str = "momo,yuki,jan,jack"
user_data_list = ["momo,yuki,jan,jack"]
password_list = [123456,234567,345678,456789]
user_age = [23,26,32,24]

# '''
user_data = [["momo",123456,23],["yuki,234567,26"]]

# 应用
# print（name_str[0])

print(user_data_list[0])
print(password_list[1])
print(user_age[1])
print(user_data[0])

name_list = ["momo,yuki,jan,jack"]


# names = "momo,11,22"
# print(names[1]) # 引入列表
users_list = ["momo,11,22"]
password_list = [123456,789654,234567]
age_list = [23,28,18]

# 补充用户信息: 打印 （print）
# input -> str  如果想让输入的数据类型变成int 需要强制转变数据类型
name = input("name: ")
age = int(input("age: "))
job = input("job: ")
salary = int(input("salary: "))
info = '''-------------INFO'''name +'''----------'''+'''
name: '''+name+'''
age: '''+age+'''
job: '''+job+'''
salary:'''+salary
print(info)